export default (app: any) => {
  app.directive("rmHref", {
    mounted(el: {
      removeAttribute: (arg0: string) => void;
      addEventListener: (arg0: string, arg1: (e: any) => void) => void;
    }) {
      el.removeAttribute("href");
      el.addEventListener("click", (e) => {
        e.preventDefault();
      });
    },
    updated(el: {
      removeAttribute: (arg0: string) => void;
      addEventListener: (arg0: string, arg1: (e: any) => void) => void;
    }) {
      el.removeAttribute("href");
      el.addEventListener("click", (e) => {
        e.preventDefault();
      });
    },
  });
};
